package com.woniu.elderly.operation.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mysql.cj.protocol.x.Notice;
import com.woniu.common.entity.Opeemployee;
import com.woniu.common.entity.Openotice;
import com.woniu.common.entity.PageBean;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

public interface OpenoticeService extends IService<Openotice> {

    PageBean<Openotice> getNoticeList(int pageIndex, int pageSize, Openotice openotice);

    void deleteByNid(long nid);

    //void add(Openotice openotice);
    void addNotice(Openotice openotice);

    void sendNotice(Openotice openotice, List<Opeemployee> opeemployees);

    void updateNotice(Openotice openotice);

    Openotice getNoticeByNid(long nid);

    Openotice getContentByNid(long nid);

    PageBean<Openotice> getNoticeListByNstate(int pageIndex, int pageSize, Openotice openotice);

    int addViewCountById(long nid);
}
